package com.woniuxy.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.util.Date;
import java.io.Serializable;

/**
 * 用户社交关系表(SocialRelationship)实体类
 *
 * @author makejava
 * @since 2025-07-12 11:28:06
 */
@TableName("social_relationship")
@ToString
@Data
public class SocialRelationship implements Serializable {

    @Serial
    private static final long serialVersionUID = -10210104095849076L;

    @Version
    @TableField(fill = FieldFill.INSERT)
    private Long version;

    /**
     * 关系ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 目标用户ID
     */
    private Long targetId;
    /**
     * 关系类型：1-关注(单向关注) 2-互关(互相关注)
     */
    private Integer relationType;
    /**
     * 状态：1-正常 2-已解除 3-已拉黑
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}

